package com.nilhcem.fakesmtp.eventbus;

import com.google.common.eventbus.AllowConcurrentEvents;
import com.google.common.eventbus.Subscribe;
import com.nilhcem.fakesmtp.server.ResendMailHandler;

public class ResendMailSubscribe {


    @Subscribe
    @AllowConcurrentEvents
    public void subscribe(ResendMailEvent event) {
        ResendMailHandler.getInstance().sendMail(
                event.getFrom(),
                event.getFileName(),
                event.getContent(),
                false);
    }
}
